@extends('layout.main')

@section('content')
<div class="content">

            @if (count($indexlist))
            @foreach($indexlist as $post)
			<h1>{{$post->title}}</h1>
			<div class="descr">{{$post->created_at}} by fafaseo</div>
            <p>
                {{$post->description}}
            </p>
            <p><a href="{{URL::to('show/' . $post->id)}}">查看全文</a></p>
            @endforeach
			@else
			 <h1>木有数据啦!</h1>
			@endif
			
			{{$indexlist->links()}}
			
		</div>
@stop

